#include<iostream>
using namespace std;
typedef long long LL;
const int N = 1e5 + 10;
LL s[N];
int cnt, n;
int main()
{
	cin >> n;
	for (int i = 1; i <= n; i++) {
		int x;
		cin >> x;
		s[i] = s[i - 1] + x;
	}
	for (int i = 1; i <= n - 1; i++) {
		if (s[i] == s[n] - s[i])cnt++;
	}
	cout << cnt << endl;
	return 0;
}